package com.ducquoc.examreviewdegreea1;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.Toast;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		ImageView ivExam = (ImageView) findViewById(R.id.ivMenuExam);
		ivExam.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Toast.makeText(MainActivity.this, "Click imageView", Toast.LENGTH_LONG).show();
			}
		});
		
		ImageView ivPho = (ImageView) findViewById(R.id.ivMenuPho);
		ivPho.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent myIntent = new Intent(MainActivity.this, PhoActivity.class);
				startActivity(myIntent);
			}
		});
        
        ImageView ivSigns = (ImageView) findViewById(R.id.ivMenuSigns);
        ivSigns.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent myIntent=new Intent(MainActivity.this, SignsActivity.class);
				 startActivity(myIntent);
			}
		});
        
        ImageView ivRuse = (ImageView) findViewById(R.id.ivMenuRuse);
        ivRuse.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent myIntent=new Intent(MainActivity.this, RuseActivity.class);
				 startActivity(myIntent);
			}
		});

	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {

		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}
}